﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Starfire3d.Data.States;

namespace Starfire3d.Data.States.GameStates
{
    public class GameManager
    {
        private StateMachine<GameManager> stateMachine = null;

        private int numOfPlayers = 0;
        private bool quitting = false;

        public StateMachine<GameManager> StateMachine
        {
            get { return stateMachine; }
        }

        public int NumOfPlayers
        {
            get { return numOfPlayers; }
            set { numOfPlayers = value; }
        }

        public bool Quitting
        {
            get { return quitting; }
            set { quitting = value; }
        }

        public GameManager()
        {
            stateMachine = new StateMachine<GameManager>(this);
            stateMachine.ChangeState(new OptionsScreen());
        }

        public bool Update()
        {
            stateMachine.Update();
            return Quitting;
        }
    }
}
